package com.challenge.smsweb.teachermanage;

import com.challenge.smsbase.Controller.GenericController;
import com.challenge.smsdao.teachermanage.domain.Department;
import com.challenge.smsservice.teachermanage.service.DepartmentManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * HXY
 */
@RestController
@RequestMapping("department")
public class DepartmentController extends GenericController<Department,Long,DepartmentManager> {
    DepartmentManager departmentManager;

    /**
     * setDepartmentManager
     * @param departmentManager
     */
    @Autowired
    public void setDepartmentManager(DepartmentManager departmentManager){
        this.departmentManager = departmentManager;
        this.manager = this.departmentManager;
    }
}
